package com.lxl;

//方法
public class Example {


    public static void main(String[] args) {
        printRectangle(3, 5);
        printRectangle(7, 9);
        printRectangle(12, 50);
    }


    public static void printRectangle(int height, int width) {

        for (int i = 0; i < height; i++) {
            for (int j = 0; j < width; j++) {
                System.out.print("*");
            }
            System.out.print("\n");
        }

    }


}
